package com.copa.gamestore.module.order.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.copa.gamestore.common.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author copa
 * @createDate 2022-09-27 17:26
 * @function
 */
@Data
@TableName("game_order")
@Accessors(chain = true)
public class Order extends BaseEntity {

    private String orderSn;

    private String address;

    private Long userId;

    private Integer status;

    private String payUrl;

    private Integer payType;

    private BigDecimal totalPrice;

    private BigDecimal actualPrice;

    private String remark;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime payTime;
}
